package com.manlitech.cloudboot.oauth;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
//import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
//import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @author shensg
 */
@SpringBootApplication
/**mybatis 扫描*/
@MapperScan("com.manlitech.cloudboot.oauth.mapper")
/**Spring Cloud 服务注册与发现标准注解@EnableDiscoveryClient**/
//@EnableDiscoveryClient
/**激活使用 EnableFeignClients**/
//@EnableFeignClients
@EnableGlobalMethodSecurity(securedEnabled=true,prePostEnabled = true)  //开启两种角色和权限
public class OauthServerApplication {

    public static void main(String[] args) {
        SpringApplication.run(OauthServerApplication.class, args);
    }

}
